﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;

namespace BeatEmUp
{
    class Player : IPlayer
    {
        private IMovementManager move;
        private Texture2D playerTexture;

        public Player(Rectangle startingPosition,Texture2D pTexture)
        {
            move = new MovementManager(startingPosition);
            playerTexture = pTexture;
        }

        public Texture2D PlayerTexture
        {
            get { return playerTexture; }
        }

        public void UpdatePlayerPosition(KeyboardState keyboardState, GamePadState gamePadState)
        {
            move.DoSomeMovement(keyboardState, gamePadState);
        }

        public Rectangle GetPlayerPosition()
        {
            return move.Position;
        }
    }
}
